<html xmlns="http://www.w3.org/1999/xhtml"  
     xmlns:h="http://java.sun.com/jsf/html"      
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:r="http://ricchieri.com/facelets"
     xmlns:p="http://primefaces.org/ui">  
 <h:head>
 </h:head>  
 <h:body>
 	<ui:composition template="../../templates/commonLayoutUsers.xhtml">
		<ui:define name="title">#{msg.titleUser}</ui:define>
		<ui:define name="content">
		
		     <h:form id="editUserForm">     
		     	<h2>#{msg.edituser}</h2> 
		     	<p:messages showDetail="false" autoUpdate="true" closable="false" severity="fatal"/>
		     	<r:commonUser manageBean="#{editUserMB}" user="#{editUserMB.user}" showPassword="false" showRoles="true" showJobData="true"/>
			     
			     <h:panelGrid columns="2" style="margin-top:10px; text-align:center">
			     	<p:commandButton id="searchUser" value="#{msg.searchuser}" action="#{editUserMB.doBackToSearchUser()}" ajax="false" styleClass="button-action green"/>
		     		<p:commandButton id="addUser" value="#{msg.saveButton}" action="#{editUserMB.save}" ajax="false" styleClass="button-action green"/>
		     	 </h:panelGrid>
		     </h:form> 
		      
    	 </ui:define>
     </ui:composition>    
</h:body>
</html> 